package net.pulseproject.router.config;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import net.pulseproject.router.config.parser.LineConfig;

public abstract class AbstractConfigTestCase {
	
	private static final Map<String, Object> EMPTY_MAP = Collections.unmodifiableMap(new HashMap<String, Object>());
	

	protected final LineConfig createConfig(final String id, final String... outgoingIds) {
		return new LineConfig(id, "type", Arrays.asList(outgoingIds), EMPTY_MAP);
	}
	
	protected final Collection<LineConfig> createLineConfigCollection(final LineConfig... configs) {
		return Arrays.asList(configs);
	}

}
